package com.xja.house.service.impl;

import com.xja.house.entity.Users;
import com.xja.house.mapper.UsersMapper;
import com.xja.house.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("usersService")
public class UsersServiceImpl implements UsersService {

    @Autowired
    private UsersMapper usersMapper;
    public Users userlogin(String name) throws Exception {
        return usersMapper.userlogin(name);
    }

    public void addUser(Users user) throws Exception {
        usersMapper.insert(user);
    }
}
